from django.contrib import admin
from django.contrib.auth.admin import UserAdmin

from .forms import CCUserCreationForm, CCUserChangeForm
from .models import CCUser

class CCUserAdmin(UserAdmin):
    add_form = CCUserCreationForm
    form = CCUserChangeForm
    model = CCUser
    list_display = ['email', 'username',]

admin.site.register(CCUser, CCUserAdmin)
